import {Component, OnInit, TemplateRef, ViewChild, Input, EventEmitter, Output} from '@angular/core';

@Component({
  selector: 'app-wy-carousel',
  templateUrl: './wy-carousel.component.html',
  styleUrls: ['./wy-carousel.component.less']
})
export class WyCarouselComponent implements OnInit {
  @ViewChild('dot', {static: true}) dotRef: TemplateRef<{ Any}>;

  @Input() activeIndex = 0;

  @Output() changeSlide = new EventEmitter<string>();

  constructor() {
  }

  ngOnInit() {
  }


  onChangeSlide(type: string) {
    this.changeSlide.emit(type);
  }
}
